package common.utils.msg;

import org.springframework.http.HttpStatus;

public enum RespSuccessMsg implements IRespSuccessMsg {

    SUCCESS(HttpStatus.OK.value());

    private final Integer code;
    private String message;


    RespSuccessMsg(Integer code) {
        this.code = code;
    }

    RespSuccessMsg(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
